package 并发编程12.aqs源码分析;

import java.util.concurrent.locks.ReentrantLock;

/**
 * @author idea
 * @data 2019/1/28
 */
public class ReentrantLockDemo {

    ReentrantLock reentrantLock=new ReentrantLock(true);

    public void test(){
        reentrantLock.lock();
        System.out.println("this is first!");
        reentrantLock.unlock();
    }

    public static void main(String[] args) {
        ReentrantLockDemo reentrantLockDemo=new ReentrantLockDemo();
        reentrantLockDemo.test();
    }
}
